package entity

// BanDevice 板卡设备 device
type BanDevice struct {
	Id           uint   `json:"id"               gorm:"primarykey"`     // id 主键
	Ip           string `json:"ip"               gorm:"ip"  `           // ip地址
	HardwareSN   string `json:"hardwareSN"       gorm:"hardwareSN"  `   // 硬件序列号，每个板卡唯一
	SoftVersion  string `json:"softVersion"      gorm:"softVersion"  `  //软件版本号
	Fpga1Version string `json:"fpga1Version"     gorm:"fpga1Version"  ` //fpga1版本号
	Fpga2Version string `json:"fpga2Version"     gorm:"fpga2Version"  ` //fpga2版本号
	Timestamp    uint64 `json:"timestamp"        gorm:"timestamp"  `    // 时间戳
}

// TableName 设置 folder 表名为 "ban_device"
func (receiver BanDevice) TableName() string {
	return "ban_device"
}
